package com.reason.user.service.impl;

import com.reason.user.dao.MarriageMapper;
import com.reason.user.pojo.Marriage;
import com.reason.user.service.MarriageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author  yulongjun
 * @date 2020/6/29 10:42 下午
 */
@Service
public class MarriageServiceImpl implements MarriageService {
    @Autowired
    private MarriageMapper marriageMapper;

    @Override
    public List<Marriage> findAll() {
        return marriageMapper.selectList(null);
    }

    @Override
    public Marriage findByID(Long id) {
        return marriageMapper.selectById(id);
    }
}
